/**
 * 2010(c) Copyright Oceansoft Information System Co.,LTD. All rights reserved.
 * <p>
 * Compile: JDK 1.6+
 * <p>
 * 版权所有(C)：江苏欧索软件有限公司
 * <p>
 * 公司名称：江苏欧索软件有限公司
 * <p>
 * 公司地址：中国苏州科技城青山路1号
 * <p>
 * 网址: http://www.oceansoft.com.cn
 * <p>
 * 版本: 苏州公安统一用户管理平台1.0
 * <p>
 * 作者: 090922(陈伟)
 * <p>
 * 文件名:SysResource.java
 * <p>
 * 类产生时间: 2012-5-23 下午5:14:19
 * <p>
 * 负责人: 090922(陈伟)
 * <p>
 * Email:javacspring@gmail.com
 * <p>
 * 所在组 : 苏州公安统一用户管理平台
 * <p>
 * 所在部门: 电信/国土——技术二部
 * <p>
 * <p>
 */
package com.oceansoft.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统资源
 * 
 * @author chenw
 * 
 */
public class SysResource implements Serializable  {
	private static final long serialVersionUID = 8905660489239121563L;
	private long dbid;
	private String resid;
	private String name;
	private String url;
	private Date cdate = new Date();
	private int ordernum = 0;
	private String remark;
	private String parent_id;
	
	private int deep;
	

	public int getDeep() {
		return deep;
	}

	public void setDeep(int deep) {
		this.deep = deep;
	}

	public SysResource() {
		super();
	}

	public SysResource(String name, String url) {
		super();
		this.name = name;
		this.url = url;
	}

	public SysResource(String name, String url, String parent_id) {
		super();
		this.name = name;
		this.url = url;
		this.parent_id = parent_id;
	}

	public Date getCdate() {
		return cdate;
	}

	public long getDbid() {
		return dbid;
	}

	public String getName() {
		return name;
	}

	public int getOrdernum() {
		return ordernum;
	}

	public String getResid() {
		return resid;
	}

	public String getUrl() {
		return url;
	}

	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}

	public void setDbid(long dbid) {
		this.dbid = dbid;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}

	public void setResid(String resid) {
		this.resid = resid;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getParent_id() {
		return parent_id;
	}

	public void setParent_id(String parent_id) {
		this.parent_id = parent_id;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append(dbid);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(resid);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(name);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(url);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(cdate);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(ordernum);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(remark);
		builder.append("&nbsp;&nbsp;&nbsp;");
		builder.append(parent_id);
		return builder.toString();
	}

	
}
